<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page import="javax.persistence.PrePersist"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Connection"%>
<%@page import="com.atilim.cargo.model.User"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Giriş</title>
</head>


<body>


<div align="center">
<font face="Tahoma" size="5" color="red">CARGO USER ENTRANCE</font><br /></div>
<div align="center">
<form action="PublicServlet?cmd=login" method="POST">
<fieldset>

	<table border="0" cellspacing="5">

	<tr>
		<td><label for="username">Kullanıcı Adı:</label></td>
		<td><input type="text" name="username"/><br></td>
		</tr>
<tr>

		<td><label for="password">Parola:</label></td>
		<td><input type="password" name="password"/><br></td>
		</tr>

<tr>

	<td><div align="center">	<input type="reset" value="Temizle"></div></td>
	<td><div align="center">	<input type="submit" value="Tamam"></div></td>
		
</tr>
<tr>

<%
	String hata = (String)session.getAttribute("HATA");
	if (hata != null) {
		
		%>
		<font face="Tahoma" size="4" color="red"><%=hata %></font><br />
		<%
	}
	session.removeAttribute("HATA");
%></tr>
	</table>
		</fieldset>
</form>
	</div>
</body>
</html>